import request from '@/utils/request';
import requestScm from '@/utils/requestScm';

/**
 * 用户登录
 * @param {*} id 
 * @returns 
 */
export function getLogin(params) {
  return request({
    url: `/api-app/metronme/login`,
    method: 'get',
    params
  })
}

/**
 * 用户登录
 * @param {*} id 
 * @returns 
 */
export function getScmLogin(params) {
  return request({
    url: `/api-app/metronme/scmLogin`,
    method: 'get',
    params
  })
}


/**
 * 用户登录2
 * @param {*} id 
 * @returns 
 */
export function getScmLogin2(params) {
  return requestScm({
    url: `/srm/mvc/services/doLogin`,
    method: 'get',
    params
  })
}

/**
 * 用户登录
 * @param {*} id 
 * @returns 
 */
export function getWelynkLogin(params) {
  return request({
    url: `/api-app/metronme/welynkLogin`,
    method: 'get',
    params
  })
}
